package org.gry.dy20180724;

public class TestExtends {
	public static void main(String[] args) {
		Person ren = new Person("郭瑞阳", 25);
		System.out.println(ren.toString());
	}
}

class Person {
	String name;
	int age;

	public Person() {
	}

	public Person(String name, int age) {
		this.name = name;
		this.age = age;
	}

	@Override
	public String toString() {
		return "名字："+name+"，年龄："+age;
	}

}